package com.six666.medicaldevicetestingsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.six666.medicaldevicetestingsystem.entity.ProjectFile;

import java.util.List;

public interface ProjectFile_Service extends IService<ProjectFile> {
    String get_url_by_id(int id);
    List<String> get_op_url_by_project_id__filetype(int project_id, String filetype);
    String get_cp_url_by_project_id__filetype(int project_id, String filetype);
    int isempty(int project_id);
    String gettestfile(int project_id, String filetype);
    boolean add_project_file(int project_id,String filetype,String file_address,String file_name);
    int add_project_file_get_id(int project_id,String filetype,String file_address,String file_name);
    ProjectFile get_file_by_project_id_and_type(int project_id,String filetype);
    boolean delete_file_by_project_id_and_type(int project_id,String filetype);
    boolean delete_file_by_project_id_and_type_plus(int project_id,String filetype,String file_address,String file_name);
    int get_file_id_by_project_id_and_type_and_filename(int project_id,String filetype,String file_name);
    String get_file_address_by_project_id_and_type(int project_id,String filetype);
    boolean delete_file_by_address(String file_address);
    List<ProjectFile> get_file_by_project_id_and_type_plus(int project_id, String filetype);
    String get_write(int project_id,int file_id);
}
